<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../js/mui.min.js"></script>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/share/common.css" />
		<link rel="stylesheet" href="../../css/shopping/buyCar.css" />
		<script type="text/javascript" charset="UTF-8">
			mui.init();
		</script>
	</head>

	<body ng-app="" ng-controller="buyCar" ng-cloak>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-back mui-pull-left header-left"></a>
			<h1 class="mui-title">购物车</h1>
		</header>
		<!-- 去计算  -->
		<nav class="mui-bar mui-bar-tab ">
			<div class="btn" onclick="openShop()">
				再逛逛
			</div>
			<div class="btn" style="border:0" ng-click="jiesuan()">
				去结算
			</div>
		</nav>
		<div class="mui-content">
			<div ng-show="isshow">
				<div class="main_title  box_orient_h clearfix">
					<div class="main_select">
						<input checked type="checkbox" id="a" ng-click="goodsSum('max')" />
						<span class="check"></span>
					</div>
					<h4>{{circleName}}</h4>
				</div>
				<!--
                	作者：619667149@qq.com
                	时间：2016-04-12
                	描述：购物车列表
                -->
				<ul id="product">
					<li ng-repeat="goods in buyCars" value={{goods}}>
						<div class="activity" ng-repeat="promotion in goods.promotionList">
							{{promotion.description}}
						</div>
						<div class="goodschange buy-{{goods.isBuy}}">
							<button ng-click="changeGoodsFun(goods)">
									换购商品
								</button>
						</div>
						<div class="main_product box_orient_h">
							<div class="main_product_select">
								<input checked id={{goods.id+goods.specColorpr+goods.specSizepr+goods.specModel+goods.specSpec}} type="checkbox" ng-click="goodsSum()" />
							</div>
							<div class="main_product_img">
								<img src={{goods.picture}}>
							</div>
							<div class="main_product_content flex-b">
								<h4 class="texthidden">{{goods.name}}</h4>
								<div class="main_content_lei texthidden">
									<a ng-hide="goods.ngcolor">颜色:{{goods.specColorpr}};</a><a ng-hide="goods.ngsize">尺寸:{{goods.specSizepr}};</a>
									<a ng-hide="goods.ngmodel">型号:{{goods.specModel}};</a><a ng-hide="goods.ngspec">规格:{{goods.specSpec}};</a>
								</div>
								<span class="pricezhuan" ng-show="goods.hide">{{goods.priceName}}</span>
								<br ng-show="goods.hide">
								<span class="pull_right">￥{{goods.nowPrice}}</span>
							</div>
							<div class="main_product_del" ng-click="deleteGoods(goods.id,goods.specSizepr,goods.specColorpr,goods.specModel,goods.specSpec)">
								<img src="../../image/shopping/gwcdlt.png">
							</div>
						</div>
						<div class="gift" ng-repeat="gift in goods.giftList">
							<span>赠品</span> {{gift.name}} {{gift.price}}
						</div>
						<div class="gift" ng-repeat="change in goods.exchangeList">
							<span>换购</span> {{change.name}} {{change.price}}
						</div>
						<div class="main_product_prn ">
							<div class="main_product_p">
								<div class="main_product_num clearfix ">
									<button class="jian" ng-click="Num(goods, '0')">
											<img src="../../image/shopping/jian1.png">
										</button >
										<input type="text" value={{goods.number}} id="textnum" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" readonly="true"/>
										<button  class="jia" ng-click="Num(goods,'1')">
											<img src="../../image/shopping/jia1.png">
										</button>
									<!--<span class="pull_right">￥{{goods.price}}</span>-->
									<span class="xiaoji" id={{nameId+goods.id+goods.specColorpr+goods.specSizepr+goods.specModel+goods.specSpec}}> 小计:￥{{goods.priceall}}</span>
								</div>
							</div>
						</div>
					</li>
				</ul>
				<div class="totail">
					<div class="totail_youhui">
						{{sumNumber}}件商品合计：￥{{sumPrice}}元
					</div>
					<div class="totail_shiji">
						<!--应付：<span style="color: #e23308">{{sumPrice}}元</span>-->
					</div>
				</div>
			</div>
			<div class="buy" ng-hide="isshow">
				<img src="../../image/shopping/buy.png" />
				<div>
					购物车空空如也，赶快购物吧。
				</div>
			</div>
		</div>
		<script type="text/javascript" src="../../js/common.js"></script>
		<script type="text/javascript" src="../../js/angular.min.js"></script>
		<script type="text/javascript" src="../../js/buyCar.js"></script>
		<script type="text/javascript" src="../../js/localData.js"></script>
		<script type="text/javascript" src="../../js/md5.js"></script>
		<script type="text/javascript" src="../../js/request.js"></script>
		<script type="text/javascript" src="../../script/shopping/buyCar.js"></script>
	</body>

</html>